package com.zkflzl.initbackendmodel.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 帖子点赞、收藏
 *
 * @author <a href="https://gitee.com/zkflzl">zkflzl</a>
 * @TableName post_msg
 */
@TableName(value = "post_msg")
@Data
public class PostMsg implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建用户 id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 帖子 id
     */
    @TableField(value = "postId")
    private Long postId;

    /**
     * 是否点赞(0否 1是)
     */
    @TableField(value = "isThumb")
    private Integer isThumb;

    /**
     * 是否点赞(0否 1是)
     */
    @TableField(value = "isFavour")
    private Integer isFavour;

    /**
     * 转发数量
     */
    private Integer forward;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
